//
//  PaySuccessViewController.m
//  didacar
//
//  Created by 度周末网络-王腾 on 16/1/13.
//  Copyright © 2016年 dzmmac. All rights reserved.
//

#import "PaySuccessViewController.h"
#import "MainInfoTitleFields.h"

@interface PaySuccessViewController ()
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
- (IBAction)rideAction:(UIButton *)sender;

@end

@implementation PaySuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"支付成功";
    
    [self setLeftBtnItem];
    
    self.priceLabel.attributedText = [self getPrice:@"300"];
    
}




-(NSAttributedString *)getPrice:(NSString *)price{
    NSMutableArray *mutableString = [[NSMutableArray alloc ] init];
    [mutableString addObject:[MainInfoTitleFields getInstaceWithText:@"成功支付" hexColor:GLOBLE_GRAY_COLOR_5_HEX fontSize:@"15"]];
    [mutableString addObject:[MainInfoTitleFields getInstaceWithText:[NSString stringWithFormat:@"¥%@",price] hexColor:GLOBLE_ORANGE_COLOR_HEX fontSize:@"15"]];
    [mutableString addObject:[MainInfoTitleFields getInstaceWithText:@"元" hexColor:GLOBLE_GRAY_COLOR_5_HEX fontSize:@"15"]];
    return [CommoneTools getAttributeString:mutableString];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


- (IBAction)rideAction:(UIButton *)sender {
    [self.tabBarController setSelectedIndex:1];
    [self.navigationController popToRootViewControllerAnimated:YES];
    
}
@end
